package com.lcw.lostandfound.service;

import com.github.pagehelper.PageInfo;
import com.lcw.lostandfound.pojo.Goods;
import com.lcw.lostandfound.pojo.User;

import java.util.List;

public interface UserService {
    List<User> findAllUsers();
    int addUser(User user);
    User findByName(String username);
    int deleteByName(String username);
    int updateUser(User user);
    int deleteById(Integer id);
    User doLogin(String username,String password);
    User checkTel(String tel);
    String sendSMS(String tel);
    //后台分页展示
    PageInfo<User> findUser(Integer pageNum, Integer pageSize);
}
